package com.car.carmgr.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Car implements Serializable {

    private String carNumber;
    private String carType;
    private String color;
    private Double price;
    private Double rentPrice;
    private Double deposit;
    private Integer isRenting;
    private String description;
    private String carImg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

}
